]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Let SWITCH_PANELS keybinding through at login screen
authorRay Strode <rstrode@redhat.com>
Sat, 17 Sep 2011 19:43:46 +0000 (15:43 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 19 Sep 2011 14:17:18 +0000 (10:17 -0400)
Users depend on being able to switch focus between the panel
and the login screen using ctrl-alt-tab.

Because the login screen has no overview, we were short circuiting
some code that needs to get run to support ctrl-alt-tab.

This commit changes the short-circuit code to only run for user
sessions.

https://bugzilla.gnome.org/show_bug.cgi?id=659177

js/ui/main.js

index 04fb8a2493da23033e99c09c5b4ebac2b742c03d..d926d0a302a02f57fa689de7588ced9d837acbb8 100644 (file)
@@ -595,9 +595,9 @@ function _globalKeyPressHandler(actor, event) {
         return true;
     }
 
-    // Other bindings are only available when the overview is up and
+    // Other bindings are only available to the user session when the overview is up and
     // no modal dialog is present.
-    if (!overview.visible || modalCount > 1)
+    if (global.session_type == Shell.SessionType.USER && (!overview.visible || modalCount > 1))
         return false;
 
     // This isn't a Meta.KeyBindingAction yet